package processes.printSumNProcess;

import os.MiniOS;
import os.MiniProcess;
import os.MiniThread;

public class PrintSumNProcess extends MiniProcess
{

	public PrintSumNProcess(String user, String pid)
	{
		super(user, pid);

		name = "PrintSumN";
		description = "Prints the sum from 1 to N";
	}

	@Override
	protected MiniThread createMainThread(String[] consoleArguments)
	{
		Integer N = Integer.parseInt(consoleArguments[1]);
		return MiniOS.getInstance().createThread(getPid(),
				"processes.printSumNProcess.PrintSumNProcessThread",
				new Object[]
				{ N });
	}

}
